package com.partners.dao.dto;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Null;
import java.util.List;

/**
 * @author liangyongle
 * @date 2019-01-02
 */
@Data
public class RoleInputDTO {

    private Integer id;

    private String name;

    private Integer pid;

    @NotNull(message = "uid缺失")
    private Integer uid;

    @JsonProperty("per_list")
    private List<Integer> perList;

    @Override
    public String toString() {
        return "RoleInputDTO{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", pid=" + pid +
            ", uid=" + uid +
            ", perList=" + perList +
            '}';
    }
}
